package com.wanxi.service;

import com.wanxi.dao.NewDao;
import com.wanxi.model.NewsModel;

import java.util.List;

/**
 * @author Li
 * @Date 2023/4/27 16:42
 */
public class NewService {

    public List<NewsModel> getIndexNews() {
        NewDao newDao = new NewDao();
       return newDao.getIndexNews();
    }

    public List<NewsModel> getNews() {
        NewDao newDao = new NewDao();
        return newDao.getNews();
    }

    public List<NewsModel> getNewTitles() {
        NewDao newDao = new NewDao();
        return newDao.getNewTitles();
    }
}
